import request from '@/utils/aliyunRequest';

const mallUserAddApi = {};

mallUserAddApi.page = (params) => {
	return request({
		url: '/aliyun-api/mall-user-addr/page',
		method: 'post',
		data: params,
	})
}
mallUserAddApi.add = (params) => {
	return request({
		url: '/aliyun-api/mall-user-addr',
		method: 'post',
		data: params,
	})
}
mallUserAddApi.update = (params) => {
	return request({
		url: '/aliyun-api/mall-user-addr',
		method: 'put',
		data: params,
	})
}
mallUserAddApi.get = (id) => {
	return request({
		url: '/aliyun-api/mall-user-addr/' + id,
		method: 'get',
	})
}
mallUserAddApi.delete = (id) => {
	return request({
		url: '/aliyun-api/mall-user-addr/' + id,
		method: 'delete',
	})
}

export default mallUserAddApi